/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-05 16:11:15
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-06 09:40:12
 */
import React from 'react'
class Son extends React.Component {
  sHandler = () => {
    // alert(1)
    // console.log(this, 9)
    this.props.f1('我是子组件==son')
  }
  render() {
    console.log(this.props, 9988)
    return (
      <div>
        御剑乘风来,除魔天地间!===Son
        <h1>father组件传的数据：{this.props.ff}</h1>
        <button onClick={this.sHandler}>son==father传值</button>
      </div>
    )
  }
}
export default Son
